Original address: http://blog.csdn.net/vagrxie/article/details/4974985Copyright NOTICE: This work is created by nine days Goose Ling, using the Creative Commons Attribution-NonCommercial Use 4.0 International License Agreement license.
1 OverviewHere we will explain in detail the various methods of the matrix and its usage. Matrix is called matrices, in the previous article explaining Colorfilter , we explained the ColorMatrix, he is a 4*5 matrix. And here, the matrix we're
The mathematical principle of matrix
In Android, if you use the matrix for image processing, you must know the Matrix class. The Matrix in Android is a 3 x 3, which reads:
The matrix image processing can be divided into four kinds of basic
1. In Android, the Matrix is used to scale, rotate, translate, and slice the image.
Matrix is a 3*3 Matrix with the following values:
The following shows the deformation attributes of the specific coordinates.| ScaleX, skewX, and translateX || SkewY,
Recently, I learned about Android Image Processing in the system (I collected some information on the Internet and compiled my own testing program.) Here I will summarize:
I. colormatrix class
Colormatrix is a 5x4 matrix. The first line indicates
I. first introduce the Scale Control
Scale is scaling. We call setscale, prescale, and postscale of Matrix. Actually, it is implemented by modifying mscale_x and mscale_y.
The following is a simple example.
1: d3dxmatrixaffinetransformation (): creates an ry transform matrix. The null parameter is treated as a matrix of units. Define d3dxmatrix * winapi plugin (d3dxmatrix * pout, float scaling, const d3dxvector3 * protationcenter, const d3dxquaternion *
Previously, I learned about matrices in linear algebra and had some knowledge about the basic operations of matrices. I learned how to use matrices to change images when I used GDI + some time ago, after reading this article, I will summarize it
The matrix is used in 1.Android to scale, rotate, pan, skew, and so on.The matrix is a 3*3, and its values correspond to the following:The following gives the properties of the specific coordinates corresponding to the deformation|scalex, Skewx,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.